package java69.work720;

public class Car7 extends Vehicle{
    protected static int loader;

    public Car7() {
    }

    public Car7(int wheels, double weight, int loader) {
        super(wheels, weight);
        this.loader = loader;
    }

    public int getLoader() {
        return loader;
    }

    public void setLoader(int loader) {
        this.loader = loader;
    }
    public void show(int loader){
        setLoader(loader);
        System.out.println("车有"+super.getWheels()+"个轮子，重"+super.getWeight()+"kg,能载"+getLoader()+"人");
    }
}
